<%@ page language="java" contentType="text/html; UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!Doctype html>

<html>
    <head>
        <title>用户注册</title>
    </head>

    <body>
        <form:form modelAttribute="user">
            <table>
                <tr>
                    <td>用户名</td>
                    <td><form:input path="userId" /></td>
                </tr>
                <tr>
                    <td>性别</td>
                    <td>
                        男<form:radiobutton path="sex" value="M"/>
                        女<form:radiobutton path="sex" value="F"/>
                        保密<form:radiobutton path="sex" value="MA"/>
                    </td>
                </tr>
                <tr>
                    <td>所在地</td>
                    <td>
                        <form:select path="province" items="${provinceList}" />
                    </td>
                </tr>
                <tr>
                    <td>运动爱好</td>
                    <td>
                        <form:select path="sports" items="${sportsMap}" />
                    </td>
                </tr>
                <tr>
                    <td>同意服务协议</td>
                    <td>
                        <form:checkbox path="agree" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <button type="submit">提交</button>
                    </td>
                </tr>
            </table>
        </form:form>
    <p>${errMsg}</p>
    </body>
</html>